package com.bll.imple.talentsAction;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bean.TalentsBean;
import com.bll.Action;
import com.dao.TalentsDao;

public class UpdateTalentsAction implements Action{


	public String execute(HttpServletRequest request,
			HttpServletResponse response) {
		  String info=request.getParameter("info");
		  int userId=Integer.parseInt(request.getParameter("userId"));
		  int id=Integer.parseInt(request.getParameter("id"));
		  
		  TalentsDao dao=new TalentsDao();
		  TalentsBean bean=new TalentsBean();
		  bean.setInfo(info);
		  bean.setUserId(userId);
		  bean.setId(id);
		  dao.UpdateTalents(bean);
		  
		  
		  
		return "zhaopin.jsp";
	}

}
